home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / dpmigcc5.zip / RSX / SOURCE / DPMI / DPMIFUN2.S < prev    next >
Text File  |  1994-12-12  |  399b  |  27 lines

  1. .data
  2.  
  3. ret_address:
  4. .long    0
  5.  
  6. .text
  7. .globl _execute_dpmi
  8.  
  9. /* ***********************
  10.     arg3
  11.     arg2
  12.    +8    arg1
  13.    +4    arg0 = fnct
  14.    +0    return address
  15.      <- ESP
  16. */
  17.  
  18. _execute_dpmi:
  19.     movl   (%esp), %eax
  20.     movl   %eax, ret_address
  21.     movl   4(%esp), %eax
  22.     addl   $8, %esp        /* skip return and fnct */
  23.     call   %eax
  24.     pushl  ret_address
  25.     pushl  ret_address
  26.     ret
  27.